﻿/********************************************************************************
** @ Date:2025/05/28
** @ Author: Gaojia
** @ Description:
** @ Version:1.0.0
** @ Fun:
********************************************************************************/
#ifndef URobotMainUi_H
#define URobotMainUi_H

#include "URobMainBase.h"
#include "ui_URobotMainUi.h"
#include <QTimer>
#include "CDevHy.h"
#include "CRBaseData.h"
#define VIDEOWIDTH 1.335
#define VIDEOHEIGH 2.174
class URobotMainUi : public URobMainBase
{
	Q_OBJECT

public:
	URobotMainUi(QWidget *parent = nullptr);
	~URobotMainUi();
	void initUI(QString sGuid, CDevBase *pDev = nullptr, CRBaseData *pRBaseData = nullptr);
protected:
	void resizeEvent(QResizeEvent *event);
	void initConnect();
	void setUi(QWidget *pWidget, QString sUiStr);
public slots:
	void slotDataRefresh();//定时器刷新
	void slotMapMng();     //点击地图管理 
	void slotTemplate();   //点击模板管理
	void slotTaskMng();    //点击任务管理 
	void slotTaskInfo();   //点击任务结果查询 
private:
	Ui::URobotMainUiClass ui;
	QTimer* m_pTimer;
	CRBaseData *m_pBaseData;
	CDevHy *m_pDevHy;
};
#endif